import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity('blog', { schema: 'aurora' })
export class blog {
  @PrimaryGeneratedColumn({ type: 'int', name: 'ind' })
  ind: number;
  @Column('varchar', {
    name: 'title',
    comment: '博客标题',
  })
  title: string;
  @Column('varchar', {
    name: 'head',
    comment: '博客封面',
  })
  head: string;
  @Column('longtext', {
    name: 'content',
    comment: '博客内容',
  })
  content: string;
  @Column('bigint', {
    name: 'creationTime',
    comment: '创建时间',
  })
  creationTime: number;
  @Column('bigint', {
    name: 'updateTime',
    comment: '修改时间',
  })
  updateTime: number;
  @Column('int', {
    name: 'banner',
    comment: '是否为banner',
  })
  banner: number;
  @Column('int', {
    name: 'sideRecommend',
    comment: '是否为首页侧边推荐',
  })
  sideRecommend: number;
  @Column('varchar', {
    name: 'tagIds',
    comment: '分类标签',
  })
  tagIds: string;
  @Column('varchar', {
    name: 'tags',
    comment: '标签',
  })
  tags: string;
  @Column('varchar', {
    name: 'id',
    comment: '博客id',
  })
  id: string;
  @Column('varchar', {
    name: 'dimension',
    comment: '文章标注',
  })
  dimension: string;
  @Column('longtext', {
    name: 'aiSummary',
    comment: 'ai总结',
  })
  aiSummary: string;
}
